<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String uri = request.getRequestURI();// 返回请求行中的资源名称
String contextPath = request.getContextPath();

%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
    <meta name="applicable-device" content="pc"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta http-equiv="Cache-Control" content="no-transform"/>
    <title>在线美食网 酒店 饭店 快餐 美食 </title>
    <meta name="keywords" content="在线美食网 酒店 饭店 快餐 美食 "/>
    <meta name="description" content="在线美食网 酒店 饭店 快餐 美食 "/>
    <link href="<%=path %>/css/index.css" rel="stylesheet" type="text/css"/>
    <link href="<%=path %>/css/common1.css" rel="stylesheet" type="text/css"/>
     <link href="<%=path %>/css/style.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="<%=path %>/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript">
    	//获取更多资讯
		function getMoreInfomation(){
			
		}
	</script>
</head>
<body>

<!--头部-->
<jsp:include page="../include/head.jsp">
	<jsp:param value="content" name="head" />
</jsp:include>

<!--导航-->
<jsp:include page="../include/nav.jsp">
	<jsp:param value="content" name="nav" />
</jsp:include>

<!-- <div id="breadcrumb">
    <div class="breadcrumb">在线美食网本地美食网站，让您尽享舌尖上的美食!</div>
</div> -->
<div class="h10"></div>
<div class="ad950">
    <div class="banner"><img src="images/ad950.jpg" alt="美食街" border="0"/></div>
</div>
<div class="h10"></div>
<div class="news_es">
    <div class="news_left">
        <!--大图广告-->
        <div class="foucs" id="banner">
        	    <div class="pic">
			        <ul>
			            <li class="first"><img src="<%=path %>/images/20116281345132.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813445138.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813452719.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813454083.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813460268.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813461516.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813463177.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813465396.jpg" alt="图片"></li>
			        	<li><img src="<%=path %>/images/201172011354266.jpg" alt="图片"></li>
			        	<li><img src="<%=path %>/images/201162813475529.jpg" alt="图片"></li>
			        </ul>
			    </div>
			
			
			    <!--图片导航-->
			    <div class="picnav">
			        <ul>
			            <li class="first"><img src="<%=path %>/images/20116281345132.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813445138.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813452719.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813454083.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813460268.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813461516.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813463177.jpg" alt="图片"></li>
			            <li><img src="<%=path %>/images/201162813465396.jpg" alt="图片"></li>
			        	<li><img src="<%=path %>/images/201172011354266.jpg" alt="图片"></li>
			        	<li><img src="<%=path %>/images/201162813475529.jpg" alt="图片"></li>
			       </ul>
			    </div>
        </div>
    </div>
    <script type="text/javascript" src="<%=path %>/js/pic.js"></script>
    
    <div class="news_right" id="information_div">
        <div class="news_right_top"><a href="javascript:getMoreInfomation()">更多>></a></div>


		<c:forEach items="${entities }" var="information">
			<div class="news_right_cenner">
	            <div class="news_right_cenner1" style="text-align: left"><a href="<%=path %>/foodIndex/detail?informationId=${information.id }" title="${information.title }"
	                                               target="_blank">${information.title }</a></div>
	            <div class="news_right_cenner2">
	            	<c:choose>
						<c:when test="${fn:length(information.abstractContent)>50 }">
							${fn:substring(information.abstractContent, 0, 50)}
							…
						</c:when>
						<c:otherwise>
							${information.abstractContent }
						</c:otherwise>
					</c:choose>
					[<a
		                    href="<%=path %>/foodIndex/detail?informationId=${information.id }" target="_self">详情</a>]
	            </div>
        	</div>
		
		</c:forEach>

    </div>
</div>

<div class="h10"></div>
<div id="shop">
    <h3><span>推荐商家</span><a href="<%=path %>/list/businessIndex" target="_blank">更多>></a></h3>
    <c:forEach items="${userEntities}" var="information">
		   	<ul class="arial" id="businessUl">
		        <li><a href="<%=path %>/list/businessDetail?userId=${information.userId}"><img src="<%=path%>${information.topPic}" width="218" height="168"/></a>
		            <p>
		                商家：${information.nickName}<br/>
		                注册时间：${fn:substring(information.createTime, 0, 19)}<br/>
		                电话：<span class="cf60">${information.telPhone}</span><br/>
		                营业时间：<span class="cf60">${information.workTime}</span><br/>
		                地址：<span class="cf60">${fn:substring(information.address, 0, 30)}<br/>
		            </p>
		        </li>
		    </ul>
	     </c:forEach>
    <div class="clear"></div>
</div>

<div class="h10"></div>
<div id="tuijian">
    <h3><span>美食推荐</span><a href="<%=path %>/list/dishesIndex" target="_blank">更多>></a></h3>
    <c:forEach items="${dishesEntities}" var="information">
		   	<ul class="arial" id="foodUl">
		        <li><a href="<%=path %>/dishes/dishesDtail?id=${information.id}"><img src="<%=path%>${information.topPic}" width="218"
		                                                                     height="168" title="${information.name}"/></a>
		            <p>
		                <a href="<%=path %>/dishes/dishesDtail?id=${information.id}" target="_self" title="${information.name}" target="_blank" class="blue12">${information.name}</a><br/>
		                商家：${information.user.nickName}<br/>
		                人均：<span class="cf60">${information.price}</span>元&nbsp;&nbsp;<br/>
		                访问量：<span class="cf60">${information.focuse}</span><br/>
		                发布时间：<span class="cf60">${fn:substring(information.createTime, 0, 19)}</span>
		            </p>
		        </li>
		    </ul>
	     </c:forEach>
    <div class="clear"></div>
</div>


<!--页脚-->
<jsp:include page="../include/footer.jsp">
	<jsp:param value="content" name="head" />
</jsp:include>

</body>
</html>
